//
//  LNUser.h
//  WeiMa
//
//  Created by ll on 2019/3/10.
//  Copyright © 2019年 淘发现1iOS. All rights reserved.
//

#import "LNObject.h"

NS_ASSUME_NONNULL_BEGIN

@interface LNUser : LNObject
/// 手机号
@property (nonatomic, readwrite, copy) NSString *phone;
/// 身份证
@property (nonatomic, readwrite, copy) NSString *idcard;
/// 昵称
@property (nonatomic, readwrite, copy) NSString *name;
/// id
@property (nonatomic, readwrite, copy) NSString *userId;
/// avatar 头像 50x50
@property (nonatomic, readwrite, strong) NSURL *avatar;
/// 是否激活
@property (nonatomic, readwrite, assign) NSInteger is_active;
/// 用户类型：1试客；2商家;3管理员；4代理商。
@property (nonatomic, readwrite, assign) NSInteger type;
/// 账号状态：0正常；1屏蔽；2封号
@property (nonatomic, readwrite, assign) NSInteger status;
/// 登录签名
@property (nonatomic, readwrite, copy) NSString *token;
/// 是否登录
@property (nonatomic,readwrite,strong) NSNumber *login;
/**
 *
 通过单例模式对工具类进行初始化
 *
 */
+ (instancetype)shareUser;

/**
 *
 通过单例模式对工具类进行初始化
 *
 */
+ (void)configInfo:(NSDictionary *)infoDic;

/**
 *
 用户退出登录的操作
 *
 */
+ (void)loginOut;

/**
 *
 用户是否登录
 *
 */
- (BOOL)isLogin;
@end

NS_ASSUME_NONNULL_END
